Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFields D

Total Complexity 148
Dependencies 6
Dependents 15
Total lines 1,374
Lines of code 741
Logical lines of code 315
Comment lines 472
Methods 42
Properties 5

Methods 42

Method Rating Maintainability Complexity Lines of code
validate_options()
B
39 17 64
get_all_fields_from_object()
A
50 9 27
process_select_field()
A
48 8 34
get_core_fields()
A
34 1 136
get_order_additional_fields_with_values()
A
50 8 27
register_field_attributes()
A
47 7 36
validate_field_for_location()
S
48 6 36
register_checkout_field()
S
48 5 35
get_field_from_object()
S
55 6 18
validate_fields_for_location()
S
51 4 27
validate_field()
S
53 4 24
add_session_meta_keys()
S
53 4 23
format_additional_field_value()
S
62 5 10
get_group_name()
S
60 4 13
get_group_key()
S
61 4 13
persist_field_for_order()
S
62 4 11
sanitize_field()
S
55 3 20
get_fields_for_location()
S
57 3 17
sync_order_additional_fields_with_customer()
S
63 4 10
sync_customer_additional_fields_with_order()
S
63 4 10
filter_fields_for_location()
S
61 3 13
get_fields_for_group()
S
62 3 12
default_validate_callback()
S
63 3 11
get_field_location()
S
67 3 8
update_default_locale_with_fields()
S
67 3 8
set_array_meta()
S
65 3 8
process_checkbox_field()
S
64 3 9
get_core_fields_keys()
S
61 1 15
deregister_checkout_field()
S
66 2 8
persist_field_for_customer()
S
68 2 7
filter_fields_for_order_confirmation()
S
68 1 8
__construct()
S
64 1 9
is_customer_field()
S
77 1 3
is_field()
S
79 1 3
get_order_fields_keys()
S
80 1 3
init()
S
72 1 5
get_contact_fields_keys()
S
80 1 3
get_address_fields_keys()
S
80 1 3
get_additional_fields()
S
82 1 3
default_sanitize_callback()
S
82 1 3
add_fields_data()
S
75 1 4
get_additional_fields_keys()
S
75 1 4